<template>
  <el-row type="flex" justify="center" align="middle">
    <el-col :span="6">
      <el-form label-width="60px" :rules="loginRules" :model="enterprise" ref="ruleForm">
        <div style=" vertical-align: middle; text-align: center;">
          <el-tabs style="margin: 10px" tab-position="top">
            <el-tab-pane label="审核记录" name="first" >审核记录</el-tab-pane>
            <el-tab-pane label="推荐记录" name="second">审核记录</el-tab-pane>

          </el-tabs>
        </div>
      </el-form>
    </el-col>
  </el-row>
</template>
<script>
export default {
  data() {
    return {
      enterprise:{
        enterpriseName:'',
        legal:'',
        legal_phone:'',
        legal_id:'',
        business_license_image:'',
        business_license:'',
        registered_capital:'',
        business_capital:'',
      },
      loginRules:{}

    }
  },methods:{
    handleAvatarSuccess(res, file) {
      console.log(res);
      console.log(this.enterprise.business_license_image);
      this.enterprise.business_license_image = res.msg
      //写请求，把图片路径保存再数据库中

    },
    // beforeAvatarUpload(file) {
    //   const isJPG = file.type === 'image/jpeg';
    //   const isLt2M = file.size / 1024 / 1024 < 2;
    //
    //   if (!isJPG) {
    //     this.$message.error('上传头像图片只能是 JPG 格式!');
    //   }
    //   if (!isLt2M) {
    //     this.$message.error('上传头像图片大小不能超过 2MB!');
    //   }
    //   return isJPG && isLt2M;
    // },
    register(){
      console.log(this.enterprise)
    },
    reset(){
      this.enterprise= {}
    }
  }
}
</script>
<style>
.el-row {
  background-image: url("../../../assets/core/Recommend.jpg");
  background-size: 100% 100%;
  height: 100%;

}
.el-col {
  background-color: rgba(232, 241, 232, 0.46);
  padding-top: 35px;
  border-radius: 30px;
  width: 600px;
  height: 600px;
}
.rounded-input{
  width: 280px;
  margin-top: 12px;
  margin-right: 65px;
}
.rounded-input >>> .el-input__inner {
  border-radius: 15px; /* 调整圆角大小，根据需要进行修改 */
}
.el-form-item{
  padding: 0;
  margin: 0;
}
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.avatar-uploader .el-upload:hover {
  border-color: #409EFF;
}
.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
}
.avatar {
  width: 50px;
  height: 50px;
  display: block;
}
.el-button{
  margin-left: 80px;
  width: 130px;

}
.el-tabs__item {
  font-size: 20px; /* 自定义字体大小 */
  width: 289px;
  margin-bottom: 10px;
}
</style>